import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;


public class Main {
	public static void main(String[] args){
        CharStream cs;
		try {
			cs = new ANTLRFileStream("src/test.txt");
			compileLexer lexer = new compileLexer(cs);
	        CommonTokenStream tokens  = new CommonTokenStream(lexer);
	        compileParser cParser = new compileParser(tokens);
	        try {
				cParser.prog();
				
			} catch (RecognitionException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
	    } catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
        //CharStream cs = new ANTLRStringStream("");
    		
        
	}
}
